<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.systop.cms.model.Articles,com.systop.cms.model.Catalogs"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <%@ include file="/common/taglibs.jsp"%>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>中国校校通--${model.shortTitle}</title>
  <%@include file="/pages/new/resources.jsp" %>
</head>
<body>
<%@include file="/pages/new/index_top.jsp" %>
<table width="1002" height="38" border="0" align="center" cellpadding="0" cellspacing="0"  style="margin-bottom:5px;">
  <tr>
    <td background="${ctx}/images/lt_new/s_bg.gif" style="padding-left: 20px;">
      <%
      	Articles art = (Articles)request.getAttribute("model");
        Catalogs catalog = art.getCatalog();
        Catalogs parent = null;
        if (art.getCatalog().getParentCatalog() != null){
        	parent = art.getCatalog().getParentCatalog();
        }
      %>
      <img src="${ctx}/images/lt_new/arrow_4.gif">&nbsp;<a href="${ctx}/main/index.do">首页</a> 
      <% if (parent != null) { %>
	      &gt;&nbsp;<a href="${ctx}/ltcata/catalog.do?path=<%=parent.getRootPath()%>"><%=parent.getName()%></a>
      <%}%>
	  	&gt;&nbsp;<a href="${ctx}/ltcata/catalog.do?path=<%=catalog.getRootPath()%>"><%=catalog.getName()%></a>
    </td>
  </tr>
</table>
  <table width="1002" height="340" align="center" cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #C0C0C0;">
    <tr>
      <td align="center" height="40" style="padding-top: 15px;">
      	<span style="font-size: 18px; font-weight: bold;">${model.shortTitle}</span><br>
      	<span style="line-height: 25px;">发布人：${model.inputer.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布时间：${model.createTime}</span>
      </td>
    </tr>
    <tr>
      <td align="left" valign="top" height="300">
      	<div style="padding: 5px 20px;">
      		${model.content}
      	</div>
      	<% if (art.getAttachmentses().size() != 0){ %>
      	  <div style="padding: 5px 20px;">
      		<div style="height: 25px; line-height: 25px; font-size: 14px; font-weight: bold;">文件下载列表:</div>
      		<div style="padding: 5px 20px;">
      		  <s:iterator value="model.attachmentses" var="att" status="num">
      			${num.count}.&nbsp;<a href="${ctx}${att.path}" target="_blank">${att.name}</a>
      		  </s:iterator>
      		</div>
      	  </div>
      	<% } %>
      </td>
    </tr>
  </table>
  <br>
  <%@include file="/pages/new/index_bottom.jsp" %>
</body>
</html>